const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  pages: {
    // 先配置主页
    index: {
      entry: './src/main.js',
      template: './public/index.html',
      filename: 'index.html',
      title: '用户登录'
    },
    // 再配置各个子页面：登录后课表查询页
    developer: {
      entry: './src/pages/developer/developer.js',
      template: './public/developer.html',
      filename: 'developer.html',
      title: '开发者端'
    },
    sysmgt: {
      entry: './src/pages/sysmgt/sysmgt.js',
      template: './public/sysmgt.html',
      filename: 'sysmgt.html',
      title: '运维端'
    },
  },
  css: {
    loaderOptions: {
      sass: {
        //引入全局变量
        additionalData: `@import "@/assets/common.css";`,
      },
    },
  },
})
